public class EqualsUtil {

	static public boolean areEqual(boolean bool1, boolean bool2) {
		return bool1 == bool2;
	}

	static public boolean areEqual(char c1, char c2) {
		return c1 == c2;
	}

	static public boolean areEqual(long l1, long l2) {

		return l1 == l2;
	}

	static public boolean areEqual(float f1, float f2) {
		return Float.floatToIntBits(f1) == Float.floatToIntBits(f2);
	}

	static public boolean areEqual(double d1, double d2) {
		return Double.doubleToLongBits(d1) == Double.doubleToLongBits(d2);
	}

	static public boolean areEqual(Object obj1, Object obj2) {
		return obj1 == null ? obj2 == null : obj1.equals(obj2);
	}
}
